package dict;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

public class AgencyDict {

	// 错误类型
	public static final Map<String, String> AGENCY = Collections.synchronizedMap(new HashMap<String, String>());

	public final static String TST_PAYMENT_SUCCESS = "AT00";
	
	public final static String ETP_SALES_SUCCESS = "SE00";
	public final static String ETP_SALES_FAILURE = "SE01";
	public final static String ETP_ENCRYPT_EXCEPTION = "SE02";
	public final static String ETP_TRANSMISSION_EXCEPTION = "SE03";
	public final static String ETP_REFUND_SUCCESS = "RE00";
	public final static String ETP_REFUND_FAILURE = "RE01";
	
	public final static String BOC_SALES_SUCCESS = "SB00";
	public final static String BOC_SALES_FAILURE = "SB01";
	public final static String BOC_ENCRYPT_EXCEPTION = "SB02";
	public final static String BOC_TRANSMISSION_EXCEPTION = "SB03";
	public final static String BOC_INVOICE_EXCEPTION = "SB04";
	public final static String BOC_REFUND_SUCCESS = "RB00";
	public final static String BOC_REFUND_FAILURE = "RB01";
	
	public final static String GLO_SALES_SUCCESS = "SG00";
	public final static String GLO_SALES_FAILURE = "SG01";
	public final static String GLO_ENCRYPT_EXCEPTION = "SG02";
	public final static String GLO_TRANSMISSION_EXCEPTION = "SG03";
	public final static String GLO_INVOICE_EXCEPTION = "SG04";
	public final static String GLO_REFUND_SUCCESS = "RG00";
	public final static String GLO_REFUND_FAILURE = "RG01";
	
	public final static String WON_SALES_SUCCESS = "SW00";
	public final static String WON_SALES_FAILURE = "SW01";
	public final static String WON_ENCRYPT_EXCEPTION = "SW02";
	public final static String WON_TRANSMISSION_EXCEPTION = "SW03";
	public final static String WON_INVOICE_EXCEPTION = "SW04";
	public final static String WON_REFUND_SUCCESS = "RW00";
	public final static String WON_REFUND_FAILURE = "RW01";
	
	public final static String CBY_SALES_SUCCESS = "SC00";
	public final static String CBY_SALES_FAILURE = "SC01";
	public final static String CBY_ENCRYPT_EXCEPTION = "SC02";
	public final static String CBY_TRANSMISSION_EXCEPTION = "SC03";
	public final static String CBY_INVOICE_EXCEPTION = "SC04";
	public final static String CBY_REFUND_SUCCESS = "RC00";
	public final static String CBY_REFUND_FAILURE = "RC01";
	
	public final static String C3D_SALES_SUCCESS = "S300";
	public final static String C3D_SALES_FAILURE = "S301";
	public final static String C3D_ENCRYPT_EXCEPTION = "S302";
	public final static String C3D_TRANSMISSION_EXCEPTION = "S303";
	public final static String C3D_INVOICE_EXCEPTION = "S304";
	public final static String C3D_REFUND_SUCCESS = "R300";
	public final static String C3D_REFUND_FAILURE = "R301";
	
	static {
		AGENCY.put(TST_PAYMENT_SUCCESS, "payment success");
		
		AGENCY.put(ETP_SALES_SUCCESS, "payment success");
		AGENCY.put(ETP_SALES_FAILURE, "payment failure");
		AGENCY.put(ETP_ENCRYPT_EXCEPTION, "encrypt data exception");
		AGENCY.put(ETP_TRANSMISSION_EXCEPTION, "transmission data exception ,please try again later.");
		AGENCY.put(ETP_REFUND_SUCCESS, "refund success");
		AGENCY.put(ETP_REFUND_FAILURE, "refund failure");
		
		AGENCY.put(BOC_SALES_SUCCESS, "payment success");
		AGENCY.put(BOC_SALES_FAILURE, "payment failure");
		AGENCY.put(BOC_ENCRYPT_EXCEPTION, "encrypt data exception");
		AGENCY.put(BOC_TRANSMISSION_EXCEPTION, "transmission data exception ,please try again later.");
		AGENCY.put(BOC_INVOICE_EXCEPTION, "invoice data exception");
		AGENCY.put(BOC_REFUND_SUCCESS, "refund success");
		AGENCY.put(BOC_REFUND_FAILURE, "refund failure");
		
		AGENCY.put(GLO_SALES_SUCCESS, "payment success");
		AGENCY.put(GLO_SALES_FAILURE, "payment failure");
		AGENCY.put(GLO_ENCRYPT_EXCEPTION, "encrypt data exception");
		AGENCY.put(GLO_TRANSMISSION_EXCEPTION, "transmission data exception ,please try again later.");
		AGENCY.put(GLO_INVOICE_EXCEPTION, "invoice data exception");
		AGENCY.put(GLO_REFUND_SUCCESS, "refund success");
		AGENCY.put(GLO_REFUND_FAILURE, "refund failure");
		
		AGENCY.put(WON_SALES_SUCCESS, "payment success");
		AGENCY.put(WON_SALES_FAILURE, "payment failure");
		AGENCY.put(WON_ENCRYPT_EXCEPTION, "encrypt data exception");
		AGENCY.put(WON_TRANSMISSION_EXCEPTION, "transmission data exception ,please try again later.");
		AGENCY.put(WON_INVOICE_EXCEPTION, "invoice data exception");
		AGENCY.put(WON_REFUND_SUCCESS, "refund success");
		AGENCY.put(WON_REFUND_FAILURE, "refund failure");
		
		AGENCY.put(CBY_SALES_SUCCESS, "payment success");
		AGENCY.put(CBY_SALES_FAILURE, "payment failure");
		AGENCY.put(CBY_ENCRYPT_EXCEPTION, "encrypt data exception");
		AGENCY.put(CBY_TRANSMISSION_EXCEPTION, "transmission data exception ,please try again later.");
		AGENCY.put(CBY_INVOICE_EXCEPTION, "invoice data exception");
		AGENCY.put(CBY_REFUND_SUCCESS, "refund success");
		AGENCY.put(CBY_REFUND_FAILURE, "refund failure");
		
		AGENCY.put(C3D_SALES_SUCCESS, "payment success");
		AGENCY.put(C3D_SALES_FAILURE, "payment failure");
		AGENCY.put(C3D_ENCRYPT_EXCEPTION, "encrypt data exception");
		AGENCY.put(C3D_TRANSMISSION_EXCEPTION, "transmission data exception ,please try again later.");
		AGENCY.put(C3D_INVOICE_EXCEPTION, "invoice data exception");
		AGENCY.put(C3D_REFUND_SUCCESS, "refund success");
		AGENCY.put(C3D_REFUND_FAILURE, "refund failure");
	}

}
